From: Paul Hänsch Date: Mon, 4 Oct 2021 20:09:35 +0000 (+0200) Subject: more reliable video meta data check (duration) X-Git-Url: https://git.plutz.net//?a=commitdiff_plain;h=0e7d01bc8a75d903e27f17ff2b89f41794d8ffea;p=rawnet more reliable video meta data check (duration) --- diff --git a/page_video.sh b/page_video.sh index 6d3a8eb..9f21409 100644 --- a/page_video.sh +++ b/page_video.sh @@ -37,7 +37,7 @@ update_video(){ esac; done if [ -f "$video" -a -r "$video" ]; then - arg="$(echo; ffprobe -show_entries stream=width,height,duration "$video" 2>&-)" + arg="$(echo; ffprobe -show_entries format=duration:stream=width,height "$video" 2>&-)" resx="${arg#*width=}"; resx="${resx%%${BR}*}" resy="${arg#*height=}"; resy="${resy%%${BR}*}" length="${arg#*duration=}"; length="${length%%${BR}*}"